* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''. 	21.2.2022 	11:19:05 	lx 	(1. Application process)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'. 	21.2.2022 	11:19:05 	lx 	(1. Application process)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'. 	21.2.2022 	11:19:05 	lx 	(1. Application process)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'. 	21.2.2022 	11:19:05 	lx 	(1. Application process)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'. 	21.2.2022 	11:19:05 	lx 	(1. Application process)

  database connect time: 0.0206 seconds. 	21.2.2022 	11:19:05 	lx 	(1. Application process)

* connect: connection changed to 'postgre-demo/fi_demo'. 	21.2.2022 	11:19:05 	lx 	(1. Application process)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/table/prf/group.json'. 	21.2.2022 	11:19:05 	lx 	(1. Application process)

* preference 'system/nc_server_start.json' was loaded from database 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'. 	21.2.2022 	11:19:05 	lx 	(1. Application process)

Käynnisteään Tcp palvelin 2. 	21.2.2022 	11:19:06 	_lx_SERVER 	(5. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''. 	21.2.2022 	11:19:07 	lx 	(5. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'. 	21.2.2022 	11:19:07 	lx 	(5. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'. 	21.2.2022 	11:19:07 	lx 	(5. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'. 	21.2.2022 	11:19:07 	lx 	(5. palvelin)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'. 	21.2.2022 	11:19:07 	lx 	(5. palvelin)

  database connect time: 0.0157 seconds. 	21.2.2022 	11:19:07 	lx 	(5. palvelin)

* connect: connection changed to 'postgre-demo/fi_demo'. 	21.2.2022 	11:19:07 	lx 	(5. palvelin)

* paths:
 - main: '/Users/pasi/nc/nc-server/'
 - bin : '/Users/pasi/4D/mg_v19/Manageri_v19/Resources/bin/bin_osx_arm64/'
 - pref: '/Users/pasi/nc/nc-server/preference/'
 - 4D  : '/Users/pasi/4D/mg_v19/Manageri_v19/'
. 	21.2.2022 	11:19:07 	lx 	(5. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/table/prf/group.json'. 	21.2.2022 	11:19:07 	lx 	(5. palvelin)

/Users/pasi/nc/nc-server/manager/4d/nc_server_4d.lua:134: loop or previous error loading module 'nc-server'. 	21.2.2022 	11:19:07 	_lx_SERVER 	(5. palvelin)

Tcp palvelin 2, sama virhe tuli yli 10 keraa peräkkäin, Tcp palvelin 2 sammutetaan. 	21.2.2022 	11:19:14 	_lx_SERVER 	(5. palvelin)

Tcp palvelin 2 sammutettu. 	21.2.2022 	11:19:16 	_lx_SERVER 	(5. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''. 	21.2.2022 	13:55:26 	lx 	(1. Application process)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'. 	21.2.2022 	13:55:26 	lx 	(1. Application process)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'. 	21.2.2022 	13:55:26 	lx 	(1. Application process)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'. 	21.2.2022 	13:55:26 	lx 	(1. Application process)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'. 	21.2.2022 	13:55:26 	lx 	(1. Application process)

  database connect time: 0.0348 seconds. 	21.2.2022 	13:55:26 	lx 	(1. Application process)

* connect: connection changed to 'postgre-demo/fi_demo'. 	21.2.2022 	13:55:26 	lx 	(1. Application process)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/table/prf/group.json'. 	21.2.2022 	13:55:26 	lx 	(1. Application process)

* preference 'system/nc_server_start.json' was loaded from database 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'. 	21.2.2022 	13:55:26 	lx 	(1. Application process)

Käynnisteään Tcp palvelin 2. 	21.2.2022 	13:55:26 	_lx_SERVER 	(4. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''. 	21.2.2022 	13:55:28 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'. 	21.2.2022 	13:55:28 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'. 	21.2.2022 	13:55:28 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'. 	21.2.2022 	13:55:28 	lx 	(4. palvelin)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'. 	21.2.2022 	13:55:28 	lx 	(4. palvelin)

  database connect time: 0.0179 seconds. 	21.2.2022 	13:55:28 	lx 	(4. palvelin)

* connect: connection changed to 'postgre-demo/fi_demo'. 	21.2.2022 	13:55:28 	lx 	(4. palvelin)

* paths:
 - main: '/Users/pasi/nc/nc-server/'
 - bin : '/Users/pasi/4D/mg_v19/Manageri_v19/Resources/bin/bin_osx_arm64/'
 - pref: '/Users/pasi/nc/nc-server/preference/'
 - 4D  : '/Users/pasi/4D/mg_v19/Manageri_v19/'
. 	21.2.2022 	13:55:28 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/table/prf/group.json'. 	21.2.2022 	13:55:28 	lx 	(4. palvelin)

/Users/pasi/nc/nc-server/manager/4d/nc_server_4d.lua:134: loop or previous error loading module 'nc-server'. 	21.2.2022 	13:55:28 	_lx_SERVER 	(4. palvelin)

Tcp palvelin 2, sama virhe tuli yli 10 keraa peräkkäin, Tcp palvelin 2 sammutetaan. 	21.2.2022 	13:55:35 	_lx_SERVER 	(4. palvelin)

Tcp palvelin 2 sammutettu. 	21.2.2022 	13:55:37 	_lx_SERVER 	(4. palvelin)

Käynnisteään Tcp palvelin 2. 	21.2.2022 	13:56:53 	_lx_SERVER 	(4. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''. 	21.2.2022 	13:56:55 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'. 	21.2.2022 	13:56:55 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'. 	21.2.2022 	13:56:55 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'. 	21.2.2022 	13:56:55 	lx 	(4. palvelin)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'. 	21.2.2022 	13:56:55 	lx 	(4. palvelin)

  database connect time: 0.0237 seconds. 	21.2.2022 	13:56:55 	lx 	(4. palvelin)

* connect: connection changed to 'postgre-demo/fi_demo'. 	21.2.2022 	13:56:55 	lx 	(4. palvelin)

* paths:
 - main: '/Users/pasi/nc/nc-server/'
 - bin : '/Users/pasi/4D/mg_v19/Manageri_v19/Resources/bin/bin_osx_arm64/'
 - pref: '/Users/pasi/nc/nc-server/preference/'
 - 4D  : '/Users/pasi/4D/mg_v19/Manageri_v19/'
. 	21.2.2022 	13:56:55 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/table/prf/group.json'. 	21.2.2022 	13:56:55 	lx 	(4. palvelin)

server arg: nc-server. 	21.2.2022 	13:56:55 	lx 	(4. palvelin)

/Users/pasi/nc/nc-server/manager/4d/nc_server_4d.lua:134: loop or previous error loading module 'nc-server'. 	21.2.2022 	13:56:55 	_lx_SERVER 	(4. palvelin)

Tcp palvelin 2, sama virhe tuli yli 10 keraa peräkkäin, Tcp palvelin 2 sammutetaan. 	21.2.2022 	13:57:02 	_lx_SERVER 	(4. palvelin)

Tcp palvelin 2 sammutettu. 	21.2.2022 	13:57:04 	_lx_SERVER 	(4. palvelin)

Käynnisteään Tcp palvelin 2. 	21.2.2022 	13:57:34 	_lx_SERVER 	(4. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''. 	21.2.2022 	13:57:35 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'. 	21.2.2022 	13:57:35 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'. 	21.2.2022 	13:57:35 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'. 	21.2.2022 	13:57:35 	lx 	(4. palvelin)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'. 	21.2.2022 	13:57:35 	lx 	(4. palvelin)

  database connect time: 0.0389 seconds. 	21.2.2022 	13:57:35 	lx 	(4. palvelin)

* connect: connection changed to 'postgre-demo/fi_demo'. 	21.2.2022 	13:57:35 	lx 	(4. palvelin)

* paths:
 - main: '/Users/pasi/nc/nc-server/'
 - bin : '/Users/pasi/4D/mg_v19/Manageri_v19/Resources/bin/bin_osx_arm64/'
 - pref: '/Users/pasi/nc/nc-server/preference/'
 - 4D  : '/Users/pasi/4D/mg_v19/Manageri_v19/'
. 	21.2.2022 	13:57:35 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/table/prf/group.json'. 	21.2.2022 	13:57:35 	lx 	(4. palvelin)

/Users/pasi/nc/nc-server/manager/4d/nc_server_4d.lua:134: loop or previous error loading module 'nc-server'. 	21.2.2022 	13:57:35 	_lx_SERVER 	(4. palvelin)

Tcp palvelin 2, sama virhe tuli yli 10 keraa peräkkäin, Tcp palvelin 2 sammutetaan. 	21.2.2022 	13:57:42 	_lx_SERVER 	(4. palvelin)

Tcp palvelin 2 sammutettu. 	21.2.2022 	13:57:44 	_lx_SERVER 	(4. palvelin)

Käynnisteään Tcp palvelin 2. 	21.2.2022 	13:58:20 	_lx_SERVER 	(4. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''. 	21.2.2022 	13:58:22 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'. 	21.2.2022 	13:58:22 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'. 	21.2.2022 	13:58:22 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'. 	21.2.2022 	13:58:22 	lx 	(4. palvelin)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'. 	21.2.2022 	13:58:22 	lx 	(4. palvelin)

  database connect time: 0.0310 seconds. 	21.2.2022 	13:58:22 	lx 	(4. palvelin)

* connect: connection changed to 'postgre-demo/fi_demo'. 	21.2.2022 	13:58:22 	lx 	(4. palvelin)

* paths:
 - main: '/Users/pasi/nc/nc-server/'
 - bin : '/Users/pasi/4D/mg_v19/Manageri_v19/Resources/bin/bin_osx_arm64/'
 - pref: '/Users/pasi/nc/nc-server/preference/'
 - 4D  : '/Users/pasi/4D/mg_v19/Manageri_v19/'
. 	21.2.2022 	13:58:22 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/table/prf/group.json'. 	21.2.2022 	13:58:22 	lx 	(4. palvelin)

/Users/pasi/nc/nc-server/manager/4d/nc_server_4d.lua:134: loop or previous error loading module 'nc-server'. 	21.2.2022 	13:58:22 	_lx_SERVER 	(4. palvelin)

Tcp palvelin 2, sama virhe tuli yli 10 keraa peräkkäin, Tcp palvelin 2 sammutetaan. 	21.2.2022 	13:58:29 	_lx_SERVER 	(4. palvelin)

Tcp palvelin 2 sammutettu. 	21.2.2022 	13:58:31 	_lx_SERVER 	(4. palvelin)

Käynnisteään Tcp palvelin 2. 	21.2.2022 	14:01:46 	_lx_SERVER 	(4. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''. 	21.2.2022 	14:01:47 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'. 	21.2.2022 	14:01:47 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'. 	21.2.2022 	14:01:47 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'. 	21.2.2022 	14:01:48 	lx 	(4. palvelin)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'. 	21.2.2022 	14:01:48 	lx 	(4. palvelin)

  database connect time: 0.0255 seconds. 	21.2.2022 	14:01:48 	lx 	(4. palvelin)

* connect: connection changed to 'postgre-demo/fi_demo'. 	21.2.2022 	14:01:48 	lx 	(4. palvelin)

* paths:
 - main: '/Users/pasi/nc/nc-server/'
 - bin : '/Users/pasi/4D/mg_v19/Manageri_v19/Resources/bin/bin_osx_arm64/'
 - pref: '/Users/pasi/nc/nc-server/preference/'
 - 4D  : '/Users/pasi/4D/mg_v19/Manageri_v19/'
. 	21.2.2022 	14:01:48 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/table/prf/group.json'. 	21.2.2022 	14:01:48 	lx 	(4. palvelin)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x011747d460, size: 400. 	21.2.2022 	14:01:48 	lx 	(4. palvelin)

********************* /Users/pasi/nc/nc-server/ *********************. 	21.2.2022 	14:01:48 	lx 	(4. palvelin)

port: 5949, arguments: '[
	5949
]', nc-server.json: '[]'. 	21.2.2022 	14:01:48 	lx 	(4. palvelin)

nc_server: debugLevel(0):0  port(5959):5949  closeConnection(0):0. 	21.2.2022 	14:01:48 	lx 	(4. palvelin)

1. Loading plugin: nc/worker/auth_worker. 	21.2.2022 	14:01:48 	lx 	(4. palvelin)

2. Loading plugin: nc/worker/query_worker. 	21.2.2022 	14:01:48 	lx 	(4. palvelin)

3. Loading plugin: nc/worker/query4d_worker. 	21.2.2022 	14:01:48 	lx 	(4. palvelin)

4. Loading plugin: nc/worker/call4d_worker. 	21.2.2022 	14:01:48 	lx 	(4. palvelin)

All plugins have been loaded. 	21.2.2022 	14:01:48 	lx 	(4. palvelin)

* cached preference files: demo-fi_demo-0 - system/option.json, demo-fi_demo-0 - system/4d.json, demo-fi_demo-0 - table/prf/field_type.json. 	21.2.2022 	14:01:48 	lx 	(4. palvelin)

* run in command line: 'ifconfig | grep -E 'inet.[0-9]' | grep -v '127.0.0.1' | awk '{ print $2}''. 	21.2.2022 	14:01:48 	lx 	(4. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''. 	21.2.2022 	14:01:48 	lx 	(4. palvelin)

Mac address: f84d896921dc. 	21.2.2022 	14:01:48 	lx 	(4. palvelin)

TLS certificate files: /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/cert.pem, /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/privkey.pem. 	21.2.2022 	14:01:48 	lx 	(4. palvelin)

NC tcp server waiting on:  http://127.0.0.1:5949/,  http://192.168.32.2:5949/,  http://192.168.33.2:5949/
                          https://127.0.0.1:5949/, https://192.168.32.2:5949/, https://192.168.33.2:5949/. 	21.2.2022 	14:01:48 	lx 	(4. palvelin)

NC udp server waiting on: 127.0.0.1:5949/, 192.168.32.2:5949, 192.168.33.2:5949/. 	21.2.2022 	14:01:48 	lx 	(4. palvelin)

--- server started in 0.2692 seconds, plugins loaded in 0.0851 seconds, 2022-02-21 14:01:48, used memory 3103.5 kb --- 	 7. 	21.2.2022 	14:01:48 	lx 	(4. palvelin)

OSX arm64, using: rapidjson-arm, lfs-ffi. 	21.2.2022 	14:01:48 	lx 	(4. palvelin)

*** tcp close for sock 87, type 'nil', protocol 'nil', reason: 'POLLHUP', request length: (no request) bytes ***. 	21.2.2022 	18:25:55 	lx 	(4. palvelin)

closing socket '87'. 	21.2.2022 	18:25:55 	lx 	(4. palvelin)

*** tcp close for sock 87, type 'nil', protocol 'nil', reason: 'POLLHUP', request length: (no request) bytes ***. 	21.2.2022 	19:32:29 	lx 	(4. palvelin)

closing socket '87'. 	21.2.2022 	19:32:29 	lx 	(4. palvelin)

1. uri: HTTP, POST '/rest/nc/query/sql4d' 2022-02-21 19:32:56
'POST /rest/nc/query/sql4d HTTP/1.1
Content-Type: application/json
Connection: keep-alive
User-Agent: nc-rest-sql
Authorization: Basic ???
Content-Encoding: lz4
Accept-Encoding: lz4
Content-Length: 315
Content-Uncompressed-Length: 380

LZ4. 	21.2.2022 	19:32:56 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'. 	21.2.2022 	19:32:56 	lx 	(4. palvelin)

    Connected to: 'Manageri v12 plg4d local, , database: plg4d, user: manage_demo'. 	21.2.2022 	19:32:56 	lx 	(4. palvelin)

  database connect time: 0.0022 seconds. 	21.2.2022 	19:32:56 	lx 	(4. palvelin)

* connect: connection changed from 'postgre-demo/fi_demo' to 'plg4d/plg4d'. 	21.2.2022 	19:32:56 	lx 	(4. palvelin)

 1. answer time: 00:00:00.07667
  
SELECT COUNT(*) FROM company. 	21.2.2022 	19:32:57 	lx 	(4. palvelin)

*** tcp close for sock 87, type 'nil', protocol 'HTTP', reason: 'POLLHUP', request length: 587 bytes ***. 	21.2.2022 	19:33:12 	lx 	(4. palvelin)

closing socket '87'. 	21.2.2022 	19:33:12 	lx 	(4. palvelin)

*** tcp close for sock 88, type 'nil', protocol 'HTTP', reason: 'POLLHUP', request length: 2 816 bytes ***. 	21.2.2022 	19:33:15 	lx 	(4. palvelin)

closing socket '88'. 	21.2.2022 	19:33:15 	lx 	(4. palvelin)

*** tcp close for sock 87, type 'nil', protocol 'HTTP', reason: 'POLLHUP', request length: 636 bytes ***. 	21.2.2022 	19:33:47 	lx 	(4. palvelin)

closing socket '87'. 	21.2.2022 	19:33:47 	lx 	(4. palvelin)

*** tcp close for sock 87, type 'nil', protocol 'HTTP', reason: 'POLLHUP', request length: 3 366 bytes ***. 	21.2.2022 	19:33:49 	lx 	(4. palvelin)

closing socket '87'. 	21.2.2022 	19:33:49 	lx 	(4. palvelin)

 -- tcp answer 73, send result: -1, send count: 1, loop count: 1, bytes sent 81660 / 81948, 288 remaining, total send time 60 µs. 	21.2.2022 	20:46:40 	lx 	(4. palvelin)

*** tcp close for sock 87, type 'nil', protocol 'HTTP', reason: 'POLLHUP', request length: 3 381 bytes ***. 	21.2.2022 	20:46:41 	lx 	(4. palvelin)

closing socket '87'. 	21.2.2022 	20:46:41 	lx 	(4. palvelin)

*** tcp close for sock 87, type 'nil', protocol 'HTTP', reason: 'POLLHUP', request length: 3 320 bytes ***. 	21.2.2022 	20:49:55 	lx 	(4. palvelin)

closing socket '87'. 	21.2.2022 	20:49:55 	lx 	(4. palvelin)

*** tcp close for sock 87, type 'nil', protocol 'HTTP', reason: 'POLLHUP', request length: 3 301 bytes ***. 	21.2.2022 	20:50:34 	lx 	(4. palvelin)

closing socket '87'. 	21.2.2022 	20:50:34 	lx 	(4. palvelin)

*** tcp close for sock 87, type 'nil', protocol 'HTTP', reason: 'POLLHUP', request length: 3 347 bytes ***. 	21.2.2022 	20:52:56 	lx 	(4. palvelin)

closing socket '87'. 	21.2.2022 	20:52:56 	lx 	(4. palvelin)

 -- tcp answer 85, send result: -1, send count: 1, loop count: 1, bytes sent 81660 / 82528, 868 remaining, total send time 59 µs. 	21.2.2022 	20:52:59 	lx 	(4. palvelin)

*** tcp close for sock 87, type 'nil', protocol 'HTTP', reason: 'POLLHUP', request length: 3 367 bytes ***. 	21.2.2022 	20:54:08 	lx 	(4. palvelin)

closing socket '87'. 	21.2.2022 	20:54:08 	lx 	(4. palvelin)

 -- tcp answer 216, send result: -1, send count: 1, loop count: 1, bytes sent 81660 / 92500, 10840 remaining, total send time 74 µs. 	21.2.2022 	21:05:50 	lx 	(4. palvelin)

 -- tcp answer 232, send result: -1, send count: 1, loop count: 1, bytes sent 81660 / 91807, 10147 remaining, total send time 61 µs. 	21.2.2022 	21:07:14 	lx 	(4. palvelin)

 -- tcp answer 234, send result: -1, send count: 1, loop count: 1, bytes sent 81660 / 89513, 7853 remaining, total send time 196 µs. 	21.2.2022 	21:07:26 	lx 	(4. palvelin)

 -- tcp answer 252, send result: -1, send count: 1, loop count: 1, bytes sent 81660 / 88532, 6872 remaining, total send time 70 µs. 	21.2.2022 	21:08:55 	lx 	(4. palvelin)

 -- tcp answer 369, send result: -1, send count: 1, loop count: 1, bytes sent 81660 / 97958, 16298 remaining, total send time 67 µs. 	21.2.2022 	21:17:35 	lx 	(4. palvelin)

 -- tcp answer 396, send result: -1, send count: 1, loop count: 1, bytes sent 81660 / 100856, 19196 remaining, total send time 95 µs. 	21.2.2022 	21:19:03 	lx 	(4. palvelin)

 -- tcp answer 397, send result: -1, send count: 1, loop count: 1, bytes sent 81660 / 95893, 14233 remaining, total send time 77 µs. 	21.2.2022 	21:19:07 	lx 	(4. palvelin)

 -- tcp answer 402, send result: -1, send count: 1, loop count: 1, bytes sent 81660 / 99368, 17708 remaining, total send time 64 µs. 	21.2.2022 	21:19:23 	lx 	(4. palvelin)

 -- tcp answer 411, send result: -1, send count: 1, loop count: 1, bytes sent 81660 / 101128, 19468 remaining, total send time 64 µs. 	21.2.2022 	21:19:55 	lx 	(4. palvelin)

 -- tcp answer 412, send result: -1, send count: 1, loop count: 1, bytes sent 81660 / 100185, 18525 remaining, total send time 69 µs. 	21.2.2022 	21:19:59 	lx 	(4. palvelin)

 -- tcp answer 413, send result: -1, send count: 1, loop count: 1, bytes sent 81660 / 98423, 16763 remaining, total send time 66 µs. 	21.2.2022 	21:20:02 	lx 	(4. palvelin)

 -- tcp answer 431, send result: -1, send count: 1, loop count: 1, bytes sent 81660 / 107850, 26190 remaining, total send time 62 µs. 	21.2.2022 	21:21:01 	lx 	(4. palvelin)

 -- tcp answer 531, send result: -1, send count: 1, loop count: 1, bytes sent 81660 / 101452, 19792 remaining, total send time 122 µs. 	21.2.2022 	21:25:48 	lx 	(4. palvelin)

 -- tcp answer 546, send result: -1, send count: 1, loop count: 1, bytes sent 81660 / 88647, 6987 remaining, total send time 62 µs. 	21.2.2022 	21:26:28 	lx 	(4. palvelin)

 -- tcp answer 551, send result: -1, send count: 1, loop count: 1, bytes sent 81660 / 116597, 34937 remaining, total send time 66 µs. 	21.2.2022 	21:26:44 	lx 	(4. palvelin)

 -- tcp answer 565, send result: -1, send count: 1, loop count: 1, bytes sent 81660 / 124204, 42544 remaining, total send time 57 µs. 	21.2.2022 	21:27:22 	lx 	(4. palvelin)

 -- tcp answer 567, send result: -1, send count: 1, loop count: 1, bytes sent 81660 / 122862, 41202 remaining, total send time 60 µs. 	21.2.2022 	21:27:28 	lx 	(4. palvelin)

 -- tcp answer 574, send result: -1, send count: 1, loop count: 1, bytes sent 81660 / 127445, 45785 remaining, total send time 69 µs. 	21.2.2022 	21:27:51 	lx 	(4. palvelin)

warning: seconds duration -0.0000000000041836 is smaller than zero, will return zero
. 	21.2.2022 	22:20:41 	lx 	(4. palvelin)

*** tcp close for sock 87, type 'nil', protocol 'HTTP', reason: 'POLLHUP', request length: 657 bytes ***. 	21.2.2022 	22:34:25 	lx 	(4. palvelin)

closing socket '87'. 	21.2.2022 	22:34:25 	lx 	(4. palvelin)

*** tcp close for sock 87, type 'nil', protocol 'nil', reason: 'POLLHUP', request length: (no request) bytes ***. 	21.2.2022 	22:37:42 	lx 	(4. palvelin)

closing socket '87'. 	21.2.2022 	22:37:42 	lx 	(4. palvelin)

*** tcp close for sock 87, type 'nil', protocol 'nil', reason: 'POLLHUP', request length: (no request) bytes ***. 	21.2.2022 	22:40:00 	lx 	(4. palvelin)

closing socket '87'. 	21.2.2022 	22:40:00 	lx 	(4. palvelin)

*** tcp close for sock 87, type 'nil', protocol 'nil', reason: 'POLLHUP', request length: (no request) bytes ***. 	21.2.2022 	22:43:26 	lx 	(4. palvelin)

closing socket '87'. 	21.2.2022 	22:43:26 	lx 	(4. palvelin)

*** tcp close for sock 87, type 'nil', protocol 'nil', reason: 'POLLHUP', request length: (no request) bytes ***. 	21.2.2022 	22:48:04 	lx 	(4. palvelin)

closing socket '87'. 	21.2.2022 	22:48:04 	lx 	(4. palvelin)

*** tcp close for sock 87, type 'nil', protocol 'nil', reason: 'POLLHUP', request length: (no request) bytes ***. 	21.2.2022 	22:52:15 	lx 	(4. palvelin)

closing socket '87'. 	21.2.2022 	22:52:15 	lx 	(4. palvelin)

*** tcp close for sock 87, type 'nil', protocol 'nil', reason: 'POLLHUP', request length: (no request) bytes ***. 	21.2.2022 	22:54:39 	lx 	(4. palvelin)

closing socket '87'. 	21.2.2022 	22:54:39 	lx 	(4. palvelin)

*** tcp close for sock 88, type 'nil', protocol 'nil', reason: 'POLLHUP', request length: (no request) bytes ***. 	21.2.2022 	22:54:39 	lx 	(4. palvelin)

closing socket '88'. 	21.2.2022 	22:54:39 	lx 	(4. palvelin)

*** tcp close for sock 87, type 'nil', protocol 'nil', reason: 'POLLHUP', request length: (no request) bytes ***. 	21.2.2022 	22:57:52 	lx 	(4. palvelin)

closing socket '87'. 	21.2.2022 	22:57:52 	lx 	(4. palvelin)

*** tcp close for sock 87, type 'nil', protocol 'nil', reason: 'POLLHUP', request length: (no request) bytes ***. 	21.2.2022 	22:58:52 	lx 	(4. palvelin)

closing socket '87'. 	21.2.2022 	22:58:52 	lx 	(4. palvelin)

*** tcp close for sock 87, type 'nil', protocol 'nil', reason: 'POLLHUP', request length: (no request) bytes ***. 	21.2.2022 	23:01:50 	lx 	(4. palvelin)

closing socket '87'. 	21.2.2022 	23:01:50 	lx 	(4. palvelin)

*** tcp close for sock 87, type 'nil', protocol 'nil', reason: 'POLLHUP', request length: (no request) bytes ***. 	21.2.2022 	23:03:04 	lx 	(4. palvelin)

closing socket '87'. 	21.2.2022 	23:03:04 	lx 	(4. palvelin)

*** tcp close for sock 87, type 'nil', protocol 'nil', reason: 'POLLHUP', request length: (no request) bytes ***. 	21.2.2022 	23:03:31 	lx 	(4. palvelin)

closing socket '87'. 	21.2.2022 	23:03:31 	lx 	(4. palvelin)

*** tcp close for sock 87, type 'nil', protocol 'nil', reason: 'POLLHUP', request length: (no request) bytes ***. 	21.2.2022 	23:03:56 	lx 	(4. palvelin)

closing socket '87'. 	21.2.2022 	23:03:56 	lx 	(4. palvelin)

*** tcp close for sock 87, type 'nil', protocol 'nil', reason: 'POLLHUP', request length: (no request) bytes ***. 	21.2.2022 	23:07:52 	lx 	(4. palvelin)

closing socket '87'. 	21.2.2022 	23:07:52 	lx 	(4. palvelin)

*** tcp close for sock 87, type 'nil', protocol 'nil', reason: 'POLLHUP', request length: (no request) bytes ***. 	21.2.2022 	23:08:55 	lx 	(4. palvelin)

closing socket '87'. 	21.2.2022 	23:08:55 	lx 	(4. palvelin)

*** tcp close for sock 87, type 'nil', protocol 'nil', reason: 'POLLHUP', request length: (no request) bytes ***. 	21.2.2022 	23:10:43 	lx 	(4. palvelin)

closing socket '87'. 	21.2.2022 	23:10:43 	lx 	(4. palvelin)

*** tcp close for sock 87, type 'nil', protocol 'nil', reason: 'POLLHUP', request length: (no request) bytes ***. 	21.2.2022 	23:11:38 	lx 	(4. palvelin)

closing socket '87'. 	21.2.2022 	23:11:38 	lx 	(4. palvelin)

*** tcp close for sock 87, type 'nil', protocol 'nil', reason: 'POLLHUP', request length: (no request) bytes ***. 	21.2.2022 	23:14:25 	lx 	(4. palvelin)

closing socket '87'. 	21.2.2022 	23:14:25 	lx 	(4. palvelin)

*** tcp close for sock 87, type 'nil', protocol 'nil', reason: 'POLLHUP', request length: (no request) bytes ***. 	21.2.2022 	23:14:40 	lx 	(4. palvelin)

closing socket '87'. 	21.2.2022 	23:14:40 	lx 	(4. palvelin)

*** tcp close for sock 87, type 'nil', protocol 'nil', reason: 'POLLHUP', request length: (no request) bytes ***. 	21.2.2022 	23:17:34 	lx 	(4. palvelin)

closing socket '87'. 	21.2.2022 	23:17:34 	lx 	(4. palvelin)

*** tcp close for sock 87, type 'nil', protocol 'nil', reason: 'POLLHUP', request length: (no request) bytes ***. 	21.2.2022 	23:17:54 	lx 	(4. palvelin)

closing socket '87'. 	21.2.2022 	23:17:54 	lx 	(4. palvelin)

*** tcp close for sock 87, type 'nil', protocol 'nil', reason: 'POLLHUP', request length: (no request) bytes ***. 	21.2.2022 	23:30:08 	lx 	(4. palvelin)

closing socket '87'. 	21.2.2022 	23:30:08 	lx 	(4. palvelin)

*** tcp close for sock 87, type 'nil', protocol 'nil', reason: 'POLLHUP', request length: (no request) bytes ***. 	21.2.2022 	23:30:30 	lx 	(4. palvelin)

closing socket '87'. 	21.2.2022 	23:30:30 	lx 	(4. palvelin)

*** tcp close for sock 87, type 'nil', protocol 'nil', reason: 'POLLHUP', request length: (no request) bytes ***. 	21.2.2022 	23:31:27 	lx 	(4. palvelin)

closing socket '87'. 	21.2.2022 	23:31:27 	lx 	(4. palvelin)

*** tcp close for sock 87, type 'nil', protocol 'nil', reason: 'POLLHUP', request length: (no request) bytes ***. 	21.2.2022 	23:31:29 	lx 	(4. palvelin)

closing socket '87'. 	21.2.2022 	23:31:29 	lx 	(4. palvelin)

*** tcp close for sock 87, type 'nil', protocol 'nil', reason: 'POLLHUP', request length: (no request) bytes ***. 	21.2.2022 	23:37:37 	lx 	(4. palvelin)

closing socket '87'. 	21.2.2022 	23:37:37 	lx 	(4. palvelin)

*** tcp close for sock 87, type 'nil', protocol 'nil', reason: 'POLLHUP', request length: (no request) bytes ***. 	21.2.2022 	23:38:18 	lx 	(4. palvelin)

closing socket '87'. 	21.2.2022 	23:38:18 	lx 	(4. palvelin)

*** tcp close for sock 87, type 'nil', protocol 'nil', reason: 'POLLHUP', request length: (no request) bytes ***. 	21.2.2022 	23:38:30 	lx 	(4. palvelin)

closing socket '87'. 	21.2.2022 	23:38:30 	lx 	(4. palvelin)

*** tcp close for sock 87, type 'nil', protocol 'nil', reason: 'POLLHUP', request length: (no request) bytes ***. 	21.2.2022 	23:40:49 	lx 	(4. palvelin)

closing socket '87'. 	21.2.2022 	23:40:49 	lx 	(4. palvelin)

*** tcp close for sock 87, type 'nil', protocol 'nil', reason: 'POLLHUP', request length: (no request) bytes ***. 	21.2.2022 	23:41:39 	lx 	(4. palvelin)

closing socket '87'. 	21.2.2022 	23:41:39 	lx 	(4. palvelin)

*** tcp close for sock 87, type 'nil', protocol 'nil', reason: 'POLLHUP', request length: (no request) bytes ***. 	21.2.2022 	23:42:25 	lx 	(4. palvelin)

closing socket '87'. 	21.2.2022 	23:42:25 	lx 	(4. palvelin)

*** tcp close for sock 87, type 'nil', protocol 'nil', reason: 'POLLHUP', request length: (no request) bytes ***. 	21.2.2022 	23:42:38 	lx 	(4. palvelin)

closing socket '87'. 	21.2.2022 	23:42:38 	lx 	(4. palvelin)

*** tcp close for sock 87, type 'nil', protocol 'nil', reason: 'POLLHUP', request length: (no request) bytes ***. 	21.2.2022 	23:42:45 	lx 	(4. palvelin)

closing socket '87'. 	21.2.2022 	23:42:45 	lx 	(4. palvelin)

*** tcp close for sock 87, type 'nil', protocol 'nil', reason: 'POLLHUP', request length: (no request) bytes ***. 	21.2.2022 	23:43:33 	lx 	(4. palvelin)

closing socket '87'. 	21.2.2022 	23:43:33 	lx 	(4. palvelin)

*** tcp close for sock 87, type 'nil', protocol 'nil', reason: 'POLLHUP', request length: (no request) bytes ***. 	21.2.2022 	23:43:35 	lx 	(4. palvelin)

closing socket '87'. 	21.2.2022 	23:43:35 	lx 	(4. palvelin)

*** tcp close for sock 87, type 'nil', protocol 'nil', reason: 'POLLHUP', request length: (no request) bytes ***. 	21.2.2022 	23:44:19 	lx 	(4. palvelin)

closing socket '87'. 	21.2.2022 	23:44:19 	lx 	(4. palvelin)

*** tcp close for sock 87, type 'nil', protocol 'nil', reason: 'POLLHUP', request length: (no request) bytes ***. 	21.2.2022 	23:46:22 	lx 	(4. palvelin)

closing socket '87'. 	21.2.2022 	23:46:22 	lx 	(4. palvelin)

*** tcp close for sock 87, type 'nil', protocol 'nil', reason: 'POLLHUP', request length: (no request) bytes ***. 	21.2.2022 	23:47:20 	lx 	(4. palvelin)

closing socket '87'. 	21.2.2022 	23:47:20 	lx 	(4. palvelin)

Starting to stop tcp server 2, max. delay 2 seconds... 	21.2.2022 	23:48:17 	_lx_SERVER 	(5. tbl_ 6)

*** tcp close for sock 85, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***. 	21.2.2022 	23:48:17 	lx 	(4. palvelin)

closing socket '85'. 	21.2.2022 	23:48:17 	lx 	(4. palvelin)

*** tcp close for sock 86, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***. 	21.2.2022 	23:48:17 	lx 	(4. palvelin)

closing socket '86'. 	21.2.2022 	23:48:17 	lx 	(4. palvelin)

 -- Server statistics --
answerCount:          859
poll.fd_count:        1
pollCount:            1309112
pollInCount:          910
pollOutCount:         0
pollCloseCount:       50
pollErrCount:         0
fd add/remove count:  53/52
totalBytesReceived:   1842002
totalBytesSent:       39704162. 	21.2.2022 	23:48:17 	lx 	(4. palvelin)

warning: socket type 'number' is not a table, socket number: 87
. 	21.2.2022 	23:48:17 	lx 	(4. palvelin)

closing socket '87'. 	21.2.2022 	23:48:17 	lx 	(4. palvelin)

poll.expand_fds, free old fds: cdata<struct pollfd *>: 0x011747d460. 	21.2.2022 	23:48:17 	lx 	(4. palvelin)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x011747d460, size: 400. 	21.2.2022 	23:48:17 	lx 	(4. palvelin)

--- server stopped ---. 	21.2.2022 	23:48:17 	lx 	(4. palvelin)

finalizer: free p1 	 cdata<void *>: 0x011747d460. 	21.2.2022 	23:48:17 	lx 	(4. palvelin)

Tcp palvelin 2 sammutettu. 	21.2.2022 	23:48:17 	_lx_SERVER 	(4. palvelin)

Käynnisteään Tcp palvelin 2. 	21.2.2022 	23:49:57 	_lx_SERVER 	(4. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''. 	21.2.2022 	23:49:59 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'. 	21.2.2022 	23:49:59 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'. 	21.2.2022 	23:49:59 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'. 	21.2.2022 	23:49:59 	lx 	(4. palvelin)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'. 	21.2.2022 	23:49:59 	lx 	(4. palvelin)

  database connect time: 0.0182 seconds. 	21.2.2022 	23:49:59 	lx 	(4. palvelin)

* connect: connection changed to 'postgre-demo/fi_demo'. 	21.2.2022 	23:49:59 	lx 	(4. palvelin)

* paths:
 - main: '/Users/pasi/nc/nc-server/'
 - bin : '/Users/pasi/4D/mg_v19/Manageri_v19/Resources/bin/bin_osx_arm64/'
 - pref: '/Users/pasi/nc/nc-server/preference/'
 - 4D  : '/Users/pasi/4D/mg_v19/Manageri_v19/'
. 	21.2.2022 	23:49:59 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/table/prf/group.json'. 	21.2.2022 	23:49:59 	lx 	(4. palvelin)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x01157e0110, size: 400. 	21.2.2022 	23:49:59 	lx 	(4. palvelin)

********************* /Users/pasi/nc/nc-server/ *********************. 	21.2.2022 	23:49:59 	lx 	(4. palvelin)

port: 5949, arguments: '[
	5949
]', nc-server.json: '[]'. 	21.2.2022 	23:49:59 	lx 	(4. palvelin)

nc_server: debugLevel(0):0  port(5959):5949  closeConnection(0):0. 	21.2.2022 	23:49:59 	lx 	(4. palvelin)

1. Loading plugin: nc/worker/auth_worker. 	21.2.2022 	23:49:59 	lx 	(4. palvelin)

2. Loading plugin: nc/worker/query_worker. 	21.2.2022 	23:49:59 	lx 	(4. palvelin)

3. Loading plugin: nc/worker/query4d_worker. 	21.2.2022 	23:49:59 	lx 	(4. palvelin)

4. Loading plugin: nc/worker/call4d_worker. 	21.2.2022 	23:49:59 	lx 	(4. palvelin)

All plugins have been loaded. 	21.2.2022 	23:49:59 	lx 	(4. palvelin)

* cached preference files: demo-fi_demo-0 - table/prf/field_type.json, demo-fi_demo-0 - system/4d.json, demo-fi_demo-0 - system/option.json. 	21.2.2022 	23:49:59 	lx 	(4. palvelin)

* run in command line: 'ifconfig | grep -E 'inet.[0-9]' | grep -v '127.0.0.1' | awk '{ print $2}''. 	21.2.2022 	23:49:59 	lx 	(4. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''. 	21.2.2022 	23:49:59 	lx 	(4. palvelin)

Mac address: f84d896921dc. 	21.2.2022 	23:49:59 	lx 	(4. palvelin)

TLS certificate files: /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/cert.pem, /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/privkey.pem. 	21.2.2022 	23:49:59 	lx 	(4. palvelin)

NC tcp server waiting on:  http://127.0.0.1:5949/,  http://192.168.32.2:5949/,  http://192.168.105.1:5949/,  http://192.168.33.2:5949/
                          https://127.0.0.1:5949/, https://192.168.32.2:5949/, https://192.168.105.1:5949/, https://192.168.33.2:5949/. 	21.2.2022 	23:49:59 	lx 	(4. palvelin)

NC udp server waiting on: 127.0.0.1:5949/, 192.168.32.2:5949, 192.168.105.1:5949, 192.168.33.2:5949/. 	21.2.2022 	23:49:59 	lx 	(4. palvelin)

--- server started in 0.0783 seconds, plugins loaded in 0.0186 seconds, 2022-02-21 23:49:59, used memory 3169.6 kb --- 	 7. 	21.2.2022 	23:49:59 	lx 	(4. palvelin)

OSX arm64, using: rapidjson-arm, lfs-ffi. 	21.2.2022 	23:49:59 	lx 	(4. palvelin)

*** tcp close for sock 88, type 'nil', protocol 'nil', reason: 'POLLHUP', request length: (no request) bytes ***. 	21.2.2022 	23:50:00 	lx 	(4. palvelin)

closing socket '88'. 	21.2.2022 	23:50:00 	lx 	(4. palvelin)

1. uri: HTTP, POST '/rest/nc/query/sql4d' 2022-02-21 23:50:46
'POST /rest/nc/query/sql4d HTTP/1.1
Content-Type: application/json
Connection: keep-alive
User-Agent: nc-rest-sql
Authorization: Basic ???
Content-Encoding: lz4
Accept-Encoding: lz4
Content-Length: 439
Content-Uncompressed-Length: 502

LZ4. 	21.2.2022 	23:50:46 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'. 	21.2.2022 	23:50:46 	lx 	(4. palvelin)

    Connected to: 'Manageri v12 plg4d local, , database: plg4d, user: manage_demo'. 	21.2.2022 	23:50:46 	lx 	(4. palvelin)

  database connect time: 0.0007 seconds. 	21.2.2022 	23:50:46 	lx 	(4. palvelin)

* connect: connection changed from 'postgre-demo/fi_demo' to 'plg4d/plg4d'. 	21.2.2022 	23:50:46 	lx 	(4. palvelin)

 1. answer time: 00:00:00.00551
  
SELECT COUNT(*)
 FROM sales_order_row sor
 WHERE sor.change_id > '20210922.205223.2c24q.sor_ a11a902b343620e706'. 	21.2.2022 	23:50:46 	lx 	(4. palvelin)

Starting to stop tcp server 2, max. delay 2 seconds... 	21.2.2022 	23:51:17 	_lx_SERVER 	(5. tbl_ 6)

*** tcp close for sock 86, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***. 	21.2.2022 	23:51:17 	lx 	(4. palvelin)

closing socket '86'. 	21.2.2022 	23:51:17 	lx 	(4. palvelin)

*** tcp close for sock 87, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***. 	21.2.2022 	23:51:17 	lx 	(4. palvelin)

closing socket '87'. 	21.2.2022 	23:51:17 	lx 	(4. palvelin)

 -- Server statistics --
answerCount:          12
poll.fd_count:        1
pollCount:            2960
pollInCount:          14
pollOutCount:         0
pollCloseCount:       1
pollErrCount:         0
fd add/remove count:  4/3
totalBytesReceived:   7854
totalBytesSent:       3376. 	21.2.2022 	23:51:17 	lx 	(4. palvelin)

warning: socket type 'number' is not a table, socket number: 88
. 	21.2.2022 	23:51:17 	lx 	(4. palvelin)

closing socket '88'. 	21.2.2022 	23:51:17 	lx 	(4. palvelin)

poll.expand_fds, free old fds: cdata<struct pollfd *>: 0x01157e0110. 	21.2.2022 	23:51:17 	lx 	(4. palvelin)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x01157e0110, size: 400. 	21.2.2022 	23:51:17 	lx 	(4. palvelin)

--- server stopped ---. 	21.2.2022 	23:51:17 	lx 	(4. palvelin)

finalizer: free p1 	 cdata<void *>: 0x01157e0110. 	21.2.2022 	23:51:17 	lx 	(4. palvelin)

Tcp palvelin 2 sammutettu. 	21.2.2022 	23:51:18 	_lx_SERVER 	(4. palvelin)

Käynnisteään Tcp palvelin 2. 	21.2.2022 	23:51:46 	_lx_SERVER 	(4. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''. 	21.2.2022 	23:51:48 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'. 	21.2.2022 	23:51:48 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'. 	21.2.2022 	23:51:48 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'. 	21.2.2022 	23:51:48 	lx 	(4. palvelin)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'. 	21.2.2022 	23:51:48 	lx 	(4. palvelin)

  database connect time: 0.0402 seconds. 	21.2.2022 	23:51:48 	lx 	(4. palvelin)

* connect: connection changed to 'postgre-demo/fi_demo'. 	21.2.2022 	23:51:48 	lx 	(4. palvelin)

* paths:
 - main: '/Users/pasi/nc/nc-server/'
 - bin : '/Users/pasi/4D/mg_v19/Manageri_v19/Resources/bin/bin_osx_arm64/'
 - pref: '/Users/pasi/nc/nc-server/preference/'
 - 4D  : '/Users/pasi/4D/mg_v19/Manageri_v19/'
. 	21.2.2022 	23:51:48 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/table/prf/group.json'. 	21.2.2022 	23:51:48 	lx 	(4. palvelin)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x012522e5b0, size: 400. 	21.2.2022 	23:51:48 	lx 	(4. palvelin)

********************* /Users/pasi/nc/nc-server/ *********************. 	21.2.2022 	23:51:48 	lx 	(4. palvelin)

port: 5949, arguments: '[
	5949
]', nc-server.json: '[]'. 	21.2.2022 	23:51:48 	lx 	(4. palvelin)

nc_server: debugLevel(0):0  port(5959):5949  closeConnection(0):0. 	21.2.2022 	23:51:48 	lx 	(4. palvelin)

1. Loading plugin: nc/worker/auth_worker. 	21.2.2022 	23:51:48 	lx 	(4. palvelin)

2. Loading plugin: nc/worker/query_worker. 	21.2.2022 	23:51:48 	lx 	(4. palvelin)

3. Loading plugin: nc/worker/query4d_worker. 	21.2.2022 	23:51:48 	lx 	(4. palvelin)

4. Loading plugin: nc/worker/call4d_worker. 	21.2.2022 	23:51:48 	lx 	(4. palvelin)

All plugins have been loaded. 	21.2.2022 	23:51:48 	lx 	(4. palvelin)

* cached preference files: demo-fi_demo-0 - system/option.json, demo-fi_demo-0 - system/4d.json, demo-fi_demo-0 - table/prf/field_type.json. 	21.2.2022 	23:51:48 	lx 	(4. palvelin)

* run in command line: 'ifconfig | grep -E 'inet.[0-9]' | grep -v '127.0.0.1' | awk '{ print $2}''. 	21.2.2022 	23:51:48 	lx 	(4. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''. 	21.2.2022 	23:51:48 	lx 	(4. palvelin)

Mac address: f84d896921dc. 	21.2.2022 	23:51:48 	lx 	(4. palvelin)

TLS certificate files: /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/cert.pem, /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/privkey.pem. 	21.2.2022 	23:51:48 	lx 	(4. palvelin)

NC tcp server waiting on:  http://127.0.0.1:5949/,  http://192.168.32.2:5949/,  http://192.168.105.1:5949/,  http://192.168.33.2:5949/
                          https://127.0.0.1:5949/, https://192.168.32.2:5949/, https://192.168.105.1:5949/, https://192.168.33.2:5949/. 	21.2.2022 	23:51:48 	lx 	(4. palvelin)

NC udp server waiting on: 127.0.0.1:5949/, 192.168.32.2:5949, 192.168.105.1:5949, 192.168.33.2:5949/. 	21.2.2022 	23:51:48 	lx 	(4. palvelin)

--- server started in 0.0824 seconds, plugins loaded in 0.0139 seconds, 2022-02-21 23:51:48, used memory 3091.4 kb --- 	 7. 	21.2.2022 	23:51:48 	lx 	(4. palvelin)

OSX arm64, using: rapidjson-arm, lfs-ffi. 	21.2.2022 	23:51:48 	lx 	(4. palvelin)

1. uri: HTTP, POST '/rest/nc/query/sql4d' 2022-02-21 23:51:52
'POST /rest/nc/query/sql4d HTTP/1.1
Content-Type: application/json
Connection: keep-alive
User-Agent: nc-rest-sql
Authorization: Basic ???
Content-Encoding: lz4
Accept-Encoding: lz4
Content-Length: 439
Content-Uncompressed-Length: 502

LZ4. 	21.2.2022 	23:51:52 	lx 	(4. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'. 	21.2.2022 	23:51:52 	lx 	(4. palvelin)

    Connected to: 'Manageri v12 plg4d local, , database: plg4d, user: manage_demo'. 	21.2.2022 	23:51:52 	lx 	(4. palvelin)

  database connect time: 0.0041 seconds. 	21.2.2022 	23:51:52 	lx 	(4. palvelin)

* connect: connection changed from 'postgre-demo/fi_demo' to 'plg4d/plg4d'. 	21.2.2022 	23:51:52 	lx 	(4. palvelin)

 1. answer time: 00:00:00.02305
  
SELECT COUNT(*)
 FROM sales_order_row sor
 WHERE sor.change_id > '20210922.205223.2c24q.sor_ a11a902b343620e706'. 	21.2.2022 	23:51:52 	lx 	(4. palvelin)

*** tcp close for sock 89, type 'nil', protocol 'HTTP', reason: 'POLLHUP', request length: 601 bytes ***. 	21.2.2022 	23:52:10 	lx 	(4. palvelin)

closing socket '89'. 	21.2.2022 	23:52:10 	lx 	(4. palvelin)

SELECT pr.product_id, pr.work__position_num_id, pr.name, pr.production_control_type, pr.stock_balance__unit, pr.unit, pr.design_unit, pr.conversion_multiplier, pr.design_conversion_multip, pr.design_unit_2, pr.unit_2, pr.fixed, pr.reserved, pr.available, pr.record_id  FROM product pr  WHERE pr.work__position_num_id <> '' OR pr.reserved <> 0 OR pr.fixed <> 0 OR pr.available <> 0 OR pr.product_id IN (SELECT DISTINCT wme.raw_material_id FROM work_material_estimated wme INNER JOIN work_order wo ON wo.work__position_num_id = wme.work__position_num_id WHERE wo.state IN ('KU','AL')) AND pr.storable = true  ORDER BY pr.product_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_arExe1,:_lx_atExe4,:_lx_atExe5,:_lx_arExe2,:_lx_arExe3,:_lx_atExe6,:_lx_atExe7,:_lx_arExe4,:_lx_arExe5,:_lx_arExe6,:_lx_atExe8
 - result _lx_atExe1 size: 8194, first value: ' 191-13812'
 - query name: new:form/nc/nc-storage/query/product-reserved.json. 	21.2.2022 	23:59:46 	_lx_ExecuteSqlNew 	(4. palvelin)

 -- tcp answer 13, send count: 5, loop count: 4, bytes sent 344658 / 344658, 0 remaining, total send time 309 µs. 	21.2.2022 	23:59:46 	lx 	(4. palvelin)

SELECT wme.work__position_num_id, wme.row_number, wme.work_phase_est_id, wme.raw_material_id, wme.quantity__unit, wme.unit, wme.quantity__unit_2, wme.unit_2, wme.record_id  FROM work_material_estimated wme  WHERE wme.work__position_num_id IN (SELECT DISTINCT wme.work__position_num_id FROM work_material_estimated wme INNER JOIN work_order wo ON wo.work__position_num_id = wme.work__position_num_id WHERE wo.state IN ('KU','AL'))  ORDER BY wme.work__position_num_id, wme.row_number, wme.raw_material_id  INTO :_lx_atExe1,:_lx_alExe1,:_lx_alExe2,:_lx_atExe2,:_lx_arExe1,:_lx_atExe3,:_lx_arExe2,:_lx_atExe4,:_lx_atExe5
 - result _lx_atExe1 size: 264, first value: '00744'
 - query name: new:form/nc/nc-storage/query/product_material-open.json. 	21.2.2022 	23:59:47 	_lx_ExecuteSqlNew 	(4. palvelin)

4D: SELECT wos.record_id FROM work_order_schedule wos INNER JOIN work_order wo ON wo.production_lot = wos.production_lot WHERE wo.state IN ('EK','KU','AL') INTO :_lx_atExe1
 - original query: SELECT wos.production_lot, wos.work_phase, wos.work_load_group_id, wo.started_amount, wos.work_phase_state, wos.subtype, wos.produced_amount, wos.failed_amount, wos.remaining_amount, wos.can_be_manufactured, wos.manufacturing_state, wos.record_id FROM work_order_schedule wos  INNER JOIN work_order wo ON wo.production_lot = wos.production_lot  WHERE wo.state IN ('EK','KU','AL')  ORDER BY wos.production_lot__work_ph  INTO :_lx_atExe1,:_lx_alExe1,:_lx_atExe2,:_lx_arExe1,:_lx_atExe3,:_lx_atExe4,:_lx_arExe2,:_lx_arExe3,:_lx_arExe4,:_lx_arExe5,:_lx_alExe2,:_lx_atExe5
 - result _lx_atExe1 size: 1445, first value: '00338/79'
 - query name: new:preference/form/nc/nc-storage/query/product_work-schedule-open.json. 	21.2.2022 	23:59:47 	_lx_ExecuteSqlNew 	(4. palvelin)

4D: SELECT wo.record_id FROM work_order wo WHERE wo.state IN ('EK','KU','AL') INTO :_lx_atExe1
 - original query: SELECT wo.work__position_num_id, wo.production_lot, wo.state, wo.started_amount, wo.produced_amount, wo.failed_amount FROM work_order wo  WHERE wo.state IN ('EK','KU','AL')  ORDER BY wo.work__position_num_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_arExe1,:_lx_arExe2,:_lx_arExe3
 - result _lx_atExe1 size: 330, first value: '00338'
 - query name: new:form/nc/nc-storage/query/production_order-open.json. 	21.2.2022 	23:59:47 	_lx_ExecuteSqlNew 	(4. palvelin)

